<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: nars.storage.Memory.workCycle</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d8/df4/classnars_1_1storage_1_1Memory_a49e2cbc8b78d535f4d69739886ee966a.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="contents">
<a class="anchor" id="a49e2cbc8b78d535f4d69739886ee966a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void nars.storage.Memory.workCycle </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>clock</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>An atomic working workCycle of the system: process new Tasks, then fire a concept. </p>
<p>Called from Reasoner.tick only</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clock</td><td>The current time to be displayed </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../db/d0c/Memory_8java_source.html#l00346">346</a> of file <a class="el" href="../../db/d0c/Memory_8java_source.html">Memory.java</a>.</p>

<p>References <a class="el" href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">nars.io.IInferenceRecorder.append()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00553">nars.storage.Memory.getNovelTasks()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00111">nars.storage.Memory.getRecorder()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00129">nars.storage.Memory.noResult()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00397">nars.storage.Memory.processConcept()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00363">nars.storage.Memory.processNewTask()</a>, <a class="el" href="../../db/d0c/Memory_8java_source.html#l00387">nars.storage.Memory.processNovelTask()</a>, and <a class="el" href="../../d6/dce/Bag_8java_source.html#l00332">nars.storage.Bag&lt; Type extends Item &gt;.refresh()</a>.</p>

<p>Referenced by <a class="el" href="../../db/d0c/Memory_8java_source.html#l00954">nars.storage.Memory.ReasonerBatch.doTick()</a>.</p>
<div class="fragment"><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;                                      {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">getRecorder</a>().<a class="code" href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">append</a>(<span class="stringliteral">&quot; --- &quot;</span> + clock + <span class="stringliteral">&quot; ---\n&quot;</span>);</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a105e44a3504921cc1036eb979b85d9f0.html#a105e44a3504921cc1036eb979b85d9f0">processNewTask</a>();</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0.html#a871fc44819f07232afb4573ad704dee0">noResult</a>()) {       <span class="comment">// necessary?</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;            <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_afe3b4d1bb5fab652ceca53c04773af73.html#afe3b4d1bb5fab652ceca53c04773af73">processNovelTask</a>();</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;        }</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0.html#a871fc44819f07232afb4573ad704dee0">noResult</a>()) {       <span class="comment">// necessary?</span></div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;            <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_a83154b55b922c82b73931d4f22e3a590.html#a83154b55b922c82b73931d4f22e3a590">processConcept</a>();</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        }</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <a class="code" href="../../d8/df4/classnars_1_1storage_1_1Memory_aa15a4cd104018dc9b98ceaa12d54255d.html#aa15a4cd104018dc9b98ceaa12d54255d">getNovelTasks</a>().<a class="code" href="../../d9/d37/classnars_1_1storage_1_1Bag_a61e1d32c91214e604ad392549bea1e7a.html#a61e1d32c91214e604ad392549bea1e7a">refresh</a>();</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    }</div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aa15a4cd104018dc9b98ceaa12d54255d_html_aa15a4cd104018dc9b98ceaa12d54255d"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aa15a4cd104018dc9b98ceaa12d54255d.html#aa15a4cd104018dc9b98ceaa12d54255d">nars.storage.Memory.getNovelTasks</a></div><div class="ttdeci">NovelTaskBag getNovelTasks()</div><div class="ttdoc">New tasks with novel composed terms, for delayed and selective processing. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00553">Memory.java:553</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_afe3b4d1bb5fab652ceca53c04773af73_html_afe3b4d1bb5fab652ceca53c04773af73"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_afe3b4d1bb5fab652ceca53c04773af73.html#afe3b4d1bb5fab652ceca53c04773af73">nars.storage.Memory.processNovelTask</a></div><div class="ttdeci">void processNovelTask()</div><div class="ttdoc">Select a novel task to process. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00387">Memory.java:387</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Bag_a61e1d32c91214e604ad392549bea1e7a_html_a61e1d32c91214e604ad392549bea1e7a"><div class="ttname"><a href="../../d9/d37/classnars_1_1storage_1_1Bag_a61e1d32c91214e604ad392549bea1e7a.html#a61e1d32c91214e604ad392549bea1e7a">nars.storage.Bag.refresh</a></div><div class="ttdeci">void refresh()</div><div class="ttdoc">Refresh display. </div><div class="ttdef"><b>Definition:</b> <a href="../../d6/dce/Bag_8java_source.html#l00332">Bag.java:332</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a83154b55b922c82b73931d4f22e3a590_html_a83154b55b922c82b73931d4f22e3a590"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a83154b55b922c82b73931d4f22e3a590.html#a83154b55b922c82b73931d4f22e3a590">nars.storage.Memory.processConcept</a></div><div class="ttdeci">void processConcept()</div><div class="ttdoc">Select a concept to fire. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00397">Memory.java:397</a></div></div>
<div class="ttc" id="interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459_html_acb473be6e5d774c10781bc8e74453459"><div class="ttname"><a href="../../db/d34/interfacenars_1_1io_1_1IInferenceRecorder_acb473be6e5d774c10781bc8e74453459.html#acb473be6e5d774c10781bc8e74453459">nars.io.IInferenceRecorder.append</a></div><div class="ttdeci">abstract void append(String s)</div><div class="ttdoc">Add new text to display. </div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0_html_a871fc44819f07232afb4573ad704dee0"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a871fc44819f07232afb4573ad704dee0.html#a871fc44819f07232afb4573ad704dee0">nars.storage.Memory.noResult</a></div><div class="ttdeci">boolean noResult()</div><div class="ttdoc">Actually means that there are no new Tasks. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00129">Memory.java:129</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_a105e44a3504921cc1036eb979b85d9f0_html_a105e44a3504921cc1036eb979b85d9f0"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_a105e44a3504921cc1036eb979b85d9f0.html#a105e44a3504921cc1036eb979b85d9f0">nars.storage.Memory.processNewTask</a></div><div class="ttdeci">void processNewTask()</div><div class="ttdoc">Process the newTasks accumulated in the previous workCycle, accept input ones and those that correspo...</div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00363">Memory.java:363</a></div></div>
<div class="ttc" id="classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1_html_aa4c7e1f5823d0404c0cab49b617968f1"><div class="ttname"><a href="../../d8/df4/classnars_1_1storage_1_1Memory_aa4c7e1f5823d0404c0cab49b617968f1.html#aa4c7e1f5823d0404c0cab49b617968f1">nars.storage.Memory.getRecorder</a></div><div class="ttdeci">IInferenceRecorder getRecorder()</div><div class="ttdoc">Inference record text to be written into a log file. </div><div class="ttdef"><b>Definition:</b> <a href="../../db/d0c/Memory_8java_source.html#l00111">Memory.java:111</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_a49e2cbc8b78d535f4d69739886ee966a_a49e2cbc8b78d535f4d69739886ee966a_cgraph.svg" width="100%" height="600"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d8/df4/classnars_1_1storage_1_1Memory_a49e2cbc8b78d535f4d69739886ee966a_a49e2cbc8b78d535f4d69739886ee966a_icgraph.svg" width="100%" height="300"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d81/namespacenars.html">nars</a></li><li class="navelem"><a class="el" href="../../de/ddc/namespacenars_1_1storage.html">storage</a></li><li class="navelem"><a class="el" href="../../d8/df4/classnars_1_1storage_1_1Memory.html">Memory</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:04:00 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
